import request from '@/utils/request'

export function findAll() {
  return request({
    url: '/grade',
    method: 'get'
  })
}

export function add(grade) {
  return request({
    url: '/grade',
    method: 'post',
    data: grade
  })
}

export function update(grade) {
  return request({
    url: '/grade',
    method: 'put',
    data: grade
  })
}

export function deleteById(gradeid) {
  return request({
    url: '/grade/' + gradeid,
    method: 'delete'
  })
}

export function selectById(gradeid) {
  return request({
    url: '/grade/' + gradeid,
    method: 'get'
  })
}
